package ar.com.sgsvm.logic;

import java.util.List;

import ar.com.sgsvm.dao.DaoFactory;
import ar.com.sgsvm.dao.IClienteDao;
import ar.com.sgsvm.entity.Cliente;

public class ClienteLogica {

	private DaoFactory mDaoFactory = DaoFactory.getDaoFactory(DaoFactory.SQLITE);
	private IClienteDao mClienteDao= mDaoFactory.getClienteDao();

	public List<Cliente> listadoClientes() throws Exception {
		IClienteDao clienteDao = mDaoFactory.getClienteDao();
		return clienteDao.readAll();
	}
	public void CrearCliente (Cliente cliente) throws Exception {
		mClienteDao.update(cliente);
		mDaoFactory.commit();
		
		
	}
}
